package com.hmall.common.client;

import com.hmall.common.dto.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ClassName: AddressController
 * Package:
 * Description
 *
 * @Author xw
 * @Create 2023/12/24 17:29
 */
@FeignClient(value = "userservice")
public interface AddressController {
    @GetMapping("/address/{id}")
    Address findAddressById(@PathVariable("id") Long id);

}
